package authx

import (
	"context"
	"encoding/json"
	"fmt"
)

func GetDataFromCtx(ctx context.Context) (int64, error) {
	cid := json.Number(fmt.Sprintf("%v", ctx.Value("CusId")))
	return cid.Int64()
}
